<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script src="references/js/jquery-2.1.0.min.js"></script>

</head>
<body>
	<logic:notEqual name="role" value="Manager">
		<logic:forward name="home" />
	</logic:notEqual>
	<tiles:insertTemplate template="/pages/masterpage/masterPage.jsp">
		<tiles:putAttribute name="body">
	
	<div class="col-lg-6 col-lg-offset-3">
	<div class="panel-group" id="accordion">
  <div class="panel panel-success">
    <div class="panel-heading">
      <h4 class="panel-title">
      Create new project
	
		
	  <a data-toggle="collapse" data-parent="#accordion" href="#collapseTask">
         <i class="fa fa-angle-double-down" style="float:right"></i>
        </a>
		
      </h4>
	 
    </div>
    <div id="collapseTask" class="panel-collapse collapse in">
      <div class="panel-body">
	<html:form action="/createProject">
	Name : <br><html:text property="name"  styleId="name" styleClass="form-control"></html:text> <br>
	Date Create:<br> <html:text property="datecreate" styleId="date" styleClass="form-control"></html:text>
				<p style="text-align: center;margin-top:10px"><html:submit styleClass="btn btn-success">Create</html:submit></p>
			</html:form>
				<logic:notEmpty name="info">
				<bean:write name="info" />
				
			</logic:notEmpty>
      </div>
    </div>
  </div>
	</div>
 
	</div>
	<script type="text/javascript">
					$(function() {
						jQuery.noConflict();
						$("#date").attr("type", "date");
						$("#date").attr("required", "");
						$("#name").attr("required", "");

					});
				</script>
	
		
		</tiles:putAttribute>
	</tiles:insertTemplate>
</body>
</html>